import request from '@/utils/request'

export function queryFormEntity(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/query.form.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFormPageList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/query.form.page.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryVersionList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/query.form.version.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryVersionInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/query.form.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function updateFormJsonInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/update.form.json.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function createFormInstance(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/create.form.instance.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function updateFormInstance(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/update.form.instance.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function deleteFormInstance(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/delete.form.instance.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFormInstanceList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/form.instance.page.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFormInstanceCondition(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/form.instance.condition.query.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function createFormInstanceCondition(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/instance/form.instance.condition.create.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFormInterfacePageList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/query.form.interface.page.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function createFormInterface(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/create.form.interface.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function updateFormInterface(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/update.form.interface.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function deleteFormInterface(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/delete.form.interface.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function publishFormInterface(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/publish.form.interface.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryInterfaceVersionList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/query.form.interface.version.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function deleteInterfaceVersion(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/delete.form.interface.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function backInterfaceVersion(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/back.form.interface.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function execByVersion(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/form/interface/exec.form.interface.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/query.flow.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowFormInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/query.flow.form.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowVersionList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/version/query.flow.version.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowVersionInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/version/query.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowVersionFormInfo(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/version/query.flow.form.version.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function saveFlowJson(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/update.flow.json.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function saveFlowFormJson(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/update.form.json.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryFlowPageList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/query.flow.page.list.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function startFlowInstance(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/start',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryMyTodoList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/flowTodoList',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryMyTodoInstanceList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/instanceTodoList',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryInstanceDetail(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/instanceDetailInfo',
        method: 'post',
        data: paramDataInfo
    })
}

export function completeInstance(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/completeInstance',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryHistoryCompleteList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/queryCompleteHistoryFlowList',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryHistoryInstanceList(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/queryCompleteHistoryInstanceList',
        method: 'post',
        data: paramDataInfo
    })
}

export function queryHistoryInstanceDetail(paramDataInfo) {
    return request({
        url: '/ywu/bpmn/flow/instance/queryHistoryInstanceDetail',
        method: 'post',
        data: paramDataInfo
    })
}